//
//  NSString+Draw.h
//  Test
//
//  Created by xueshan1 on 2018/12/17.
//  Copyright © 2018 xueshan1. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface NSString (Draw)

- (CGSize)xs_sizeWithConstrainedSize:(CGSize)constrainedSize fontSize:(CGFloat)fontSize lineBreadMode:(NSLineBreakMode)lineBreadMode;


- (void)xs_drawWithContext:(CGContextRef)context rect:(CGRect)rect fontSize:(CGFloat)fontSize lineBreakMode:(NSLineBreakMode)lineBreakMode alignment:(NSTextAlignment)alignment color:(UIColor *)color;


@end

NS_ASSUME_NONNULL_END
